package com.tcm.im.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 医院信息，使用 1-009-000-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {

    REGISTER_HX_ID_FAIL(1009000001, "注册环信账号失败"),
    FRIENDS_ADD_FAIL(1009000002, "添加环信好友失败"),
    SENDER_NOT_FOUND(1009000003, "缺少发送者"),
    CONSULTATIONID_NOT_FOUND(1009000004, "问诊单不存在"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
